<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>日期时间微调器之清除图标 - jQuery EasyUI 演示</title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../../locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
	<h2 title="DateTimeSpinner with Clear Icon">日期时间微调器之清除图标</h2>
	<p title="A clear icon can be attached to the datetimespinner. Click it to clear the entered value.">　　清除图标可被附加到日期时间微调器上。点击即可清除已输入的值。</p>
	<div class="easyui-panel" style="width:100%;max-width:300px;padding:10px 20px;">
		<div style="margin-bottom:0px">
			<input class="easyui-datetimespinner" value="2015-06-24 17:23:40" style="width:100%;" data-options="
					showSeconds: true, prompt: '请在此输入日期时间！',
					icons:[{
						iconCls:'icon-clear',
						handler: function(e){$(e.data.target).datetimespinner('clear');}
					}],
					label: '开始时间：', labelPosition:'left', labelWidth:80, labelAlign:'right'
					">
		</div>
	</div>
</body>
</html>